package com.stream.jikethirdtask.controller;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

/**
 * @Author: xiaoqiang
 * @Description:
 * @Date: 2022/12/11
 * @Version: 1.0
 */
@Component
public class MessageReceiver {

    @StreamListener(Sink.INPUT)
    public void processs(Object msg){
        System.out.println(msg.toString());
    }
}
